package cate.game.role.base.msg;

import cate.game.client.msg.MsgConfig;
import cate.game.client.msg.MsgOutput;
import cate.game.client.msg.id.MsgIdBRole;
import cate.game.role.Role;
import easy.java.dev.note.NoteField;

public class RolePowerResp implements MsgOutput {
    @NoteField(value = "战力")
    public long power;

    public RolePowerResp(){}

    public RolePowerResp(Role role){
        this.power = role.getBase().power;
    }

    public RolePowerResp(long power){
        this.power = power;
    }

    @Override
    public MsgConfig conf() {
        return MsgIdBRole.POWER_RESP;
    }
}
